package cn.iocoder.yudao.module.wms.dal.mysql.otherin;

import java.util.*;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.wms.dal.dataobject.otherin.OtherInDDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 通用入库单身 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface OtherInDMapper extends BaseMapperX<OtherInDDO> {

    default List<OtherInDDO> selectListByHeadId(Long headId) {
        return selectList(OtherInDDO::getHeadId, headId);
    }

    default int deleteByHeadId(Long headId) {
        return delete(OtherInDDO::getHeadId, headId);
    }

}